package com.video.video.service.impl;

import com.video.common.exception.ServiceException;
import com.video.common.utils.DateUtils;
import com.video.common.utils.StringUtils;
import com.video.common.utils.uuid.IdUtils;
import com.video.video.domain.DGoods;
import com.video.video.domain.DGoodsBach;
import com.video.video.domain.DSystemSettings;
import com.video.video.domain.DUser;
import com.video.video.domain.app.dto.DGoodsDto;
import com.video.video.domain.app.dto.GooodFrontQuery;
import com.video.video.domain.vo.GoodsQuery;
import com.video.video.mapper.DGoodsMapper;
import com.video.video.mapper.DGoodsSoldMapper;
import com.video.video.service.*;
import org.apache.commons.collections4.CollectionUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.List;

/**
 * 商品Service业务层处理
 *
 * @author ruoyi
 * @date 2022-09-27
 */
@Service
public class DSoldGoodsServiceImpl implements IDSoldGoodsService
{
    private static final Logger log = LoggerFactory.getLogger(DSoldGoodsServiceImpl.class);
    @Autowired
    private DGoodsSoldMapper dGoodsSoldMapper;


    @Override
    public int insertSoldDGoods(DGoods dGoods) {
        return dGoodsSoldMapper.insertSoldDGoods(dGoods);
    }

    @Override
    public int batchInsertSoldDGoods(List<DGoods> dGoodsList) {
        return dGoodsSoldMapper.batchInsertSoldDGoods(dGoodsList);
    }
}
